package dao;

import pojo.User;

import java.sql.SQLException;

/**
 *
 * 用户的数据访问接口
 *
 */



public interface IUserDAO {

    User login(String username, String password) throws SQLException;

    /**
     * 通过用户id查询用户名
     * @param userId
     * @return
     */
    User selectUserById(Long userId) throws SQLException;

}
